package com.leedsoft.domain;

import java.util.ArrayList;
import java.util.List;

public class SysRscDictExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysRscDictExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIDIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIDIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIDEqualTo(Long value) {
            addCriterion("ID =", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotEqualTo(Long value) {
            addCriterion("ID <>", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThan(Long value) {
            addCriterion("ID >", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThan(Long value) {
            addCriterion("ID <", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDIn(List<Long> values) {
            addCriterion("ID in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotIn(List<Long> values) {
            addCriterion("ID not in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIsNull() {
            addCriterion("PARENT_ID is null");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIsNotNull() {
            addCriterion("PARENT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDEqualTo(Long value) {
            addCriterion("PARENT_ID =", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotEqualTo(Long value) {
            addCriterion("PARENT_ID <>", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDGreaterThan(Long value) {
            addCriterion("PARENT_ID >", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("PARENT_ID >=", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDLessThan(Long value) {
            addCriterion("PARENT_ID <", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDLessThanOrEqualTo(Long value) {
            addCriterion("PARENT_ID <=", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIn(List<Long> values) {
            addCriterion("PARENT_ID in", values, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotIn(List<Long> values) {
            addCriterion("PARENT_ID not in", values, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDBetween(Long value1, Long value2) {
            addCriterion("PARENT_ID between", value1, value2, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotBetween(Long value1, Long value2) {
            addCriterion("PARENT_ID not between", value1, value2, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andD_KEYIsNull() {
            addCriterion("D_KEY is null");
            return (Criteria) this;
        }

        public Criteria andD_KEYIsNotNull() {
            addCriterion("D_KEY is not null");
            return (Criteria) this;
        }

        public Criteria andD_KEYEqualTo(String value) {
            addCriterion("D_KEY =", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYNotEqualTo(String value) {
            addCriterion("D_KEY <>", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYGreaterThan(String value) {
            addCriterion("D_KEY >", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYGreaterThanOrEqualTo(String value) {
            addCriterion("D_KEY >=", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYLessThan(String value) {
            addCriterion("D_KEY <", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYLessThanOrEqualTo(String value) {
            addCriterion("D_KEY <=", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYLike(String value) {
            addCriterion("D_KEY like", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYNotLike(String value) {
            addCriterion("D_KEY not like", value, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYIn(List<String> values) {
            addCriterion("D_KEY in", values, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYNotIn(List<String> values) {
            addCriterion("D_KEY not in", values, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYBetween(String value1, String value2) {
            addCriterion("D_KEY between", value1, value2, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_KEYNotBetween(String value1, String value2) {
            addCriterion("D_KEY not between", value1, value2, "d_KEY");
            return (Criteria) this;
        }

        public Criteria andD_VALUEIsNull() {
            addCriterion("D_VALUE is null");
            return (Criteria) this;
        }

        public Criteria andD_VALUEIsNotNull() {
            addCriterion("D_VALUE is not null");
            return (Criteria) this;
        }

        public Criteria andD_VALUEEqualTo(String value) {
            addCriterion("D_VALUE =", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUENotEqualTo(String value) {
            addCriterion("D_VALUE <>", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUEGreaterThan(String value) {
            addCriterion("D_VALUE >", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUEGreaterThanOrEqualTo(String value) {
            addCriterion("D_VALUE >=", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUELessThan(String value) {
            addCriterion("D_VALUE <", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUELessThanOrEqualTo(String value) {
            addCriterion("D_VALUE <=", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUELike(String value) {
            addCriterion("D_VALUE like", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUENotLike(String value) {
            addCriterion("D_VALUE not like", value, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUEIn(List<String> values) {
            addCriterion("D_VALUE in", values, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUENotIn(List<String> values) {
            addCriterion("D_VALUE not in", values, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUEBetween(String value1, String value2) {
            addCriterion("D_VALUE between", value1, value2, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andD_VALUENotBetween(String value1, String value2) {
            addCriterion("D_VALUE not between", value1, value2, "d_VALUE");
            return (Criteria) this;
        }

        public Criteria andCODEIsNull() {
            addCriterion("CODE is null");
            return (Criteria) this;
        }

        public Criteria andCODEIsNotNull() {
            addCriterion("CODE is not null");
            return (Criteria) this;
        }

        public Criteria andCODEEqualTo(String value) {
            addCriterion("CODE =", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODENotEqualTo(String value) {
            addCriterion("CODE <>", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODEGreaterThan(String value) {
            addCriterion("CODE >", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODEGreaterThanOrEqualTo(String value) {
            addCriterion("CODE >=", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODELessThan(String value) {
            addCriterion("CODE <", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODELessThanOrEqualTo(String value) {
            addCriterion("CODE <=", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODELike(String value) {
            addCriterion("CODE like", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODENotLike(String value) {
            addCriterion("CODE not like", value, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODEIn(List<String> values) {
            addCriterion("CODE in", values, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODENotIn(List<String> values) {
            addCriterion("CODE not in", values, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODEBetween(String value1, String value2) {
            addCriterion("CODE between", value1, value2, "CODE");
            return (Criteria) this;
        }

        public Criteria andCODENotBetween(String value1, String value2) {
            addCriterion("CODE not between", value1, value2, "CODE");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMIsNull() {
            addCriterion("SORT_NUM is null");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMIsNotNull() {
            addCriterion("SORT_NUM is not null");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMEqualTo(Integer value) {
            addCriterion("SORT_NUM =", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMNotEqualTo(Integer value) {
            addCriterion("SORT_NUM <>", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMGreaterThan(Integer value) {
            addCriterion("SORT_NUM >", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMGreaterThanOrEqualTo(Integer value) {
            addCriterion("SORT_NUM >=", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMLessThan(Integer value) {
            addCriterion("SORT_NUM <", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMLessThanOrEqualTo(Integer value) {
            addCriterion("SORT_NUM <=", value, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMIn(List<Integer> values) {
            addCriterion("SORT_NUM in", values, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMNotIn(List<Integer> values) {
            addCriterion("SORT_NUM not in", values, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMBetween(Integer value1, Integer value2) {
            addCriterion("SORT_NUM between", value1, value2, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andSORT_NUMNotBetween(Integer value1, Integer value2) {
            addCriterion("SORT_NUM not between", value1, value2, "SORT_NUM");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIsNull() {
            addCriterion("DESCRIPT is null");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIsNotNull() {
            addCriterion("DESCRIPT is not null");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTEqualTo(String value) {
            addCriterion("DESCRIPT =", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTNotEqualTo(String value) {
            addCriterion("DESCRIPT <>", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTGreaterThan(String value) {
            addCriterion("DESCRIPT >", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPT >=", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTLessThan(String value) {
            addCriterion("DESCRIPT <", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPT <=", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTLike(String value) {
            addCriterion("DESCRIPT like", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTNotLike(String value) {
            addCriterion("DESCRIPT not like", value, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIn(List<String> values) {
            addCriterion("DESCRIPT in", values, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTNotIn(List<String> values) {
            addCriterion("DESCRIPT not in", values, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTBetween(String value1, String value2) {
            addCriterion("DESCRIPT between", value1, value2, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTNotBetween(String value1, String value2) {
            addCriterion("DESCRIPT not between", value1, value2, "DESCRIPT");
            return (Criteria) this;
        }

        public Criteria andMEMOIsNull() {
            addCriterion("MEMO is null");
            return (Criteria) this;
        }

        public Criteria andMEMOIsNotNull() {
            addCriterion("MEMO is not null");
            return (Criteria) this;
        }

        public Criteria andMEMOEqualTo(String value) {
            addCriterion("MEMO =", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMONotEqualTo(String value) {
            addCriterion("MEMO <>", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOGreaterThan(String value) {
            addCriterion("MEMO >", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOGreaterThanOrEqualTo(String value) {
            addCriterion("MEMO >=", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOLessThan(String value) {
            addCriterion("MEMO <", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOLessThanOrEqualTo(String value) {
            addCriterion("MEMO <=", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOLike(String value) {
            addCriterion("MEMO like", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMONotLike(String value) {
            addCriterion("MEMO not like", value, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOIn(List<String> values) {
            addCriterion("MEMO in", values, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMONotIn(List<String> values) {
            addCriterion("MEMO not in", values, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMOBetween(String value1, String value2) {
            addCriterion("MEMO between", value1, value2, "MEMO");
            return (Criteria) this;
        }

        public Criteria andMEMONotBetween(String value1, String value2) {
            addCriterion("MEMO not between", value1, value2, "MEMO");
            return (Criteria) this;
        }

        public Criteria andTenant_idIsNull() {
            addCriterion("tenant_id is null");
            return (Criteria) this;
        }

        public Criteria andTenant_idIsNotNull() {
            addCriterion("tenant_id is not null");
            return (Criteria) this;
        }

        public Criteria andTenant_idEqualTo(String value) {
            addCriterion("tenant_id =", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idNotEqualTo(String value) {
            addCriterion("tenant_id <>", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idGreaterThan(String value) {
            addCriterion("tenant_id >", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_id >=", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idLessThan(String value) {
            addCriterion("tenant_id <", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idLessThanOrEqualTo(String value) {
            addCriterion("tenant_id <=", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idLike(String value) {
            addCriterion("tenant_id like", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idNotLike(String value) {
            addCriterion("tenant_id not like", value, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idIn(List<String> values) {
            addCriterion("tenant_id in", values, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idNotIn(List<String> values) {
            addCriterion("tenant_id not in", values, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idBetween(String value1, String value2) {
            addCriterion("tenant_id between", value1, value2, "tenant_id");
            return (Criteria) this;
        }

        public Criteria andTenant_idNotBetween(String value1, String value2) {
            addCriterion("tenant_id not between", value1, value2, "tenant_id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}